This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
myVar is the value you define for var in your viewPanel, so you're always getting the relevant NotesXSPViewEntry object. getDocument() gets the back-end NotesDocument and getUniversalID() gets its UNID to include in your computed URL.
So your viewPanel will be comething like this in the source panel:
<xp:viewPanel id="viewPanel1" rows="30" var="myVar">
Now that I've looked into it further, the problem is @AttachmentNames - it nly works on the currentDocument object, so expects a document to be open. I've got a solution which may seem a bit complex (it requires you to use a repeat control in your view column) but actually is fairly straightforward. I'll post it on the notes and domino app dev wiki and add a link here.
The solution will only work though if you're wanting to open the first attachment in a NotesRichTextItem / number of NotesRichTextItems. This is because the getEmbeddedObjects() method of NotesDocument cannot get a handle on attachments. I'm assuming that's not a problem for you.
Feedback response number WEBB84BN8J created by ~Maria Xanjumiberg on 04/08/2010